package com.xiaoxie.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 小谢
 * @since 2023-10-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Component
public class Word implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String word;

    private String user;

    private String meaning;

    private LocalDateTime lastTime;

    private Integer right;

    private Integer wrong;

    private Float familiar;

    private String finish;

    private Float strength;

    private Float interval;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime nextTime;

    private Integer wrong_today;

    private Integer lexicon_id;

    private Integer learn_today;


}
